<template>
  <div class="rem_con">
    <ul>
      <li v-for="item in activity">
        <a>
          <img v-bind:src=item.imgurl alt="" v-bind:val="item.val" @click="gotoactivity">
        </a>
      </li>

    </ul>
  </div>
  <!--活动-->
</template>
<style>

</style>
<script>

  export default{
    data(){
      return {
        msg: 'hello vue',
        activity: [
          {imgurl: '../../static/image/rem_1.jpg', val: '1'},
          {imgurl: '../../static/image/rem_3.jpg', val: '3'},
          {imgurl: '../../static/image/rem_4.jpg', val: '4'},
          {imgurl: '../../static/image/rem_5.jpg', val: '5'},
          {imgurl: '../../static/image/rem_2.jpg', val: '2'}
        ]
      }
    },
    components: {},
    methods: {
      gotoactivity: function (e) {
        var link = $(e.currentTarget).attr('val')
        if (link == '1') {
          console.log(link)
        }
        if (link == '2') {
          console.log(link)
        }
      }
    }
  }
</script>
